package com.example.demo.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@Api(tags = "聊天历史记录")
@TableName("t_chat_history")
public class ChatHistory {
    //告诉mybatis-plus 主键字段
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键id")
    private String id;
    @ApiModelProperty("用户姓名")
    private  String username;
    @ApiModelProperty("消息")
    private String message;
    @ApiModelProperty("消息发送时间")
    private Date time;

}
